package com.zhl.hadoop.cases.phonesort;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-10-28 11:11
 **/
public class FlowSortReduce extends Reducer<PhoneFlowSort, Text,Text,PhoneFlowSort> {

	@Override
	protected void reduce(PhoneFlowSort key, Iterable<Text> values, Context context) throws IOException, InterruptedException {
		for (Text value : values) {
			context.write(value,key);
		}
	}
}
